package com.roomaja.Remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by 15361 on 2018/8/5.
 */
@FeignClient(name= "wallpaper-producer")
public interface HelloRemote {
    @RequestMapping(value = "/hello")
    public String hello(@RequestParam(value = "name") String name);

    /**
     * 随机获取一张照片
     * @return
     */
    @GetMapping(value = "/backgroundPicture/w/{resType}/one")
    public ResponseEntity<byte[]> getOne(@PathVariable("resType") String resType);
}
